package com.qf.lanzhou.blog.api.pojo.entity;


import java.sql.Timestamp;
import java.text.SimpleDateFormat;

/**
 * @author LEON-HE
 */
public class Audit {
    private Long id;
    private String content;
    private String userName;
    private Long userId;
    private Timestamp sendTime;
    private String status;
    private String sendTimeStr;
    private static SimpleDateFormat sdf;

    public Audit() {
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Timestamp getSendTime() {
        return sendTime;
    }

    public void setSendTime(Timestamp sendTime) {
        this.sendTime = sendTime;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getSendTimeStr() {
        return sendTimeStr;
    }

    public void setSendTimeStr(Timestamp sendTime) {
        sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        String sendTimeStr = sdf.format(sendTime);
        this.sendTimeStr = sendTimeStr;
    }

    @Override
    public String toString() {
        return "Audit{" +
                "id=" + id +
                ", content='" + content + '\'' +
                ", userName='" + userName + '\'' +
                ", userId=" + userId +
                ", sendTime=" + sendTime +
                ", status='" + status + '\'' +
                ", sendTimeStr='" + sendTimeStr + '\'' +
                '}';
    }
}
